/**
 * 
 */
package com.google.code.sharebyblog.bravo.currencyconvertor.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


public class CurrencyConversionRequest implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2772992479309896203L;

	private String currencyFrom;
	private BigDecimal amount;
	private List<String> currencyTo;
	
	

	public String getCurrencyFrom() {
		return currencyFrom;
	}
	public void setCurrencyFrom(String currencyFrom) {
		this.currencyFrom = currencyFrom;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public List<String> getCurrencyTo() {
		return currencyTo;
	}
	public void setCurrencyTo(List<String> currencyTo) {
		this.currencyTo = currencyTo;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("CurrencyConversionRequest [currencyFrom=");
		builder.append(currencyFrom);
		builder.append(", amount=");
		builder.append(amount);
		builder.append(", currencyTo=");
		builder.append(currencyTo);
		builder.append("]");
		return builder.toString();
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((amount == null) ? 0 : amount.hashCode());
		result = prime * result
				+ ((currencyFrom == null) ? 0 : currencyFrom.hashCode());
		result = prime * result
				+ ((currencyTo == null) ? 0 : currencyTo.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof CurrencyConversionRequest))
			return false;
		CurrencyConversionRequest other = (CurrencyConversionRequest) obj;
		if (amount == null) {
			if (other.amount != null)
				return false;
		} else if (!amount.equals(other.amount))
			return false;
		if (currencyFrom == null) {
			if (other.currencyFrom != null)
				return false;
		} else if (!currencyFrom.equals(other.currencyFrom))
			return false;
		if (currencyTo == null) {
			if (other.currencyTo != null)
				return false;
		} else if (!currencyTo.equals(other.currencyTo))
			return false;
		return true;
	}
	

}
